<?php
namespace app\index\controller;
use think\Request;  
use think\controller\Rest; 
class Banner extends Rest{
    public function readAll(){  
        $model = model('Banner');   
        $data=$model->select();
        return json($data);  
    }
    public function readAll2(){  
        $model = model('Banner2');   
        $data=$model->select();
        return json($data);  
    }
}